package com.ecar.core.order.entity;

import java.io.Serializable;

public class OrderPriceRule implements Serializable {
    private String id;

    private Integer carLevel;

    private Integer serviceType;

    private Double minPrice;

    private Double menuRate;

    private Double passRate;

    private Double menuTime;

    private Double passTime;

    private Double nullRate;

    private Double nullPassRate;

    private Double nightPrice;

    private String remark;
    
    private Double longDistanceRate;
    
    private Double longDistancePrice;

    public Double getLongDistanceRate() {
		return longDistanceRate;
	}

	public void setLongDistanceRate(Double longDistanceRate) {
		this.longDistanceRate = longDistanceRate;
	}

	public Double getLongDistancePrice() {
		return longDistancePrice;
	}

	public void setLongDistancePrice(Double longDistancePrice) {
		this.longDistancePrice = longDistancePrice;
	}

	private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getCarLevel() {
        return carLevel;
    }

    public void setCarLevel(Integer carLevel) {
        this.carLevel = carLevel;
    }

    public Integer getServiceType() {
        return serviceType;
    }

    public void setServiceType(Integer serviceType) {
        this.serviceType = serviceType;
    }

    public Double getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Double minPrice) {
        this.minPrice = minPrice;
    }

    public Double getMenuRate() {
        return menuRate;
    }

    public void setMenuRate(Double menuRate) {
        this.menuRate = menuRate;
    }

    public Double getPassRate() {
        return passRate;
    }

    public void setPassRate(Double passRate) {
        this.passRate = passRate;
    }

    public Double getMenuTime() {
        return menuTime;
    }

    public void setMenuTime(Double menuTime) {
        this.menuTime = menuTime;
    }

    public Double getPassTime() {
        return passTime;
    }

    public void setPassTime(Double passTime) {
        this.passTime = passTime;
    }

    public Double getNullRate() {
        return nullRate;
    }

    public void setNullRate(Double nullRate) {
        this.nullRate = nullRate;
    }

    public Double getNullPassRate() {
        return nullPassRate;
    }

    public void setNullPassRate(Double nullPassRate) {
        this.nullPassRate = nullPassRate;
    }

    public Double getNightPrice() {
        return nightPrice;
    }

    public void setNightPrice(Double nightPrice) {
        this.nightPrice = nightPrice;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderPriceRule other = (OrderPriceRule) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCarLevel() == null ? other.getCarLevel() == null : this.getCarLevel().equals(other.getCarLevel()))
            && (this.getServiceType() == null ? other.getServiceType() == null : this.getServiceType().equals(other.getServiceType()))
            && (this.getMinPrice() == null ? other.getMinPrice() == null : this.getMinPrice().equals(other.getMinPrice()))
            && (this.getMenuRate() == null ? other.getMenuRate() == null : this.getMenuRate().equals(other.getMenuRate()))
            && (this.getPassRate() == null ? other.getPassRate() == null : this.getPassRate().equals(other.getPassRate()))
            && (this.getMenuTime() == null ? other.getMenuTime() == null : this.getMenuTime().equals(other.getMenuTime()))
            && (this.getPassTime() == null ? other.getPassTime() == null : this.getPassTime().equals(other.getPassTime()))
            && (this.getNullRate() == null ? other.getNullRate() == null : this.getNullRate().equals(other.getNullRate()))
            && (this.getNullPassRate() == null ? other.getNullPassRate() == null : this.getNullPassRate().equals(other.getNullPassRate()))
            && (this.getNightPrice() == null ? other.getNightPrice() == null : this.getNightPrice().equals(other.getNightPrice()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCarLevel() == null) ? 0 : getCarLevel().hashCode());
        result = prime * result + ((getServiceType() == null) ? 0 : getServiceType().hashCode());
        result = prime * result + ((getMinPrice() == null) ? 0 : getMinPrice().hashCode());
        result = prime * result + ((getMenuRate() == null) ? 0 : getMenuRate().hashCode());
        result = prime * result + ((getPassRate() == null) ? 0 : getPassRate().hashCode());
        result = prime * result + ((getMenuTime() == null) ? 0 : getMenuTime().hashCode());
        result = prime * result + ((getPassTime() == null) ? 0 : getPassTime().hashCode());
        result = prime * result + ((getNullRate() == null) ? 0 : getNullRate().hashCode());
        result = prime * result + ((getNullPassRate() == null) ? 0 : getNullPassRate().hashCode());
        result = prime * result + ((getNightPrice() == null) ? 0 : getNightPrice().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }
}